#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int main()
{
	int num = 0;
	int arr[60] = { 0 };
	scanf("%d %d %d", &arr[0], &arr[1], &num);

	//2 3 6 1 8 6 8 4 8 4
	int count = 2;
	for (int i = 2; count < num ; i++)
	{
		int cn = arr[i - 1] * arr[i - 2];
		if (cn < 10)
		{
			arr[count++] = cn;
		}
		else
		{
			int t = 0;
			int tem[10] = { 0 };
			while (cn)
			{
				int temp = 0;
				temp = cn % 10;
				cn /= 10;

				tem[t++] = temp;
			}

			for (int j = t; j > 0;)
			{
				arr[count++] = tem[--j];
			}
		}
	}

	for (int i = 0; i < count - 1; i++)
	{
		printf("%d ", arr[i]);
	}

	return 0;
}
